package com.ruoyi.client.pojo.form;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 用户更改
 */
@Data
public class UserUpdateForm {
    @ApiModelProperty(value = "用户ID（必填）", example = "1")
    @NotNull(message = "用户ID不能为空")
    private Long id;

    @ApiModelProperty(value = "用户名（选填，不填则不更新）")
    private String username;

    @ApiModelProperty(value = "真实姓名（选填，不填则不更新）")
    private String name;

    @ApiModelProperty(value = "密码（选填，不填则不更新）")
    private String password;

    @ApiModelProperty(value = "手机号（选填，不填则不更新）")
    private String tel;

    @ApiModelProperty(value = "头像（选填，不填则不更新）")
    private String avatar;
}